home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Languages / Masm V6.11 / SAMPLES / NTSAMPLE / NTDLL / CASMDLL.MA$ / CASMDLL.bin
Encoding:
Text File  |  1993-09-16  |  904 b   |  61 lines

  1.  
  2. # Set this macro to 'VCNT' to use the Visual C++ tools.
  3. # Set it to anything else to use the Win32 SDK tools.
  4.  
  5. TOOLS = VCNT
  6.  
  7.  
  8. !IF "$(TOOLS)" == "VCNT"
  9.  
  10. CC = cl
  11. LINK = link
  12. IMPLIB = lib
  13. ENTRY_DLL = DllMain
  14.  
  15. !ELSE
  16.  
  17. CC = cl386
  18. LINK = link32
  19. IMPLIB = lib32
  20. LIBS = kernel32.lib libc.lib
  21. ENTRY_DLL = DllMain@0
  22. ENTRY = -entry:mainCRTStartup
  23.  
  24. !ENDIF
  25.  
  26.  
  27.  
  28. all : asmdll.dll cmain.exe
  29.  
  30. asmdll.dll : asmdll.obj asmdll.exp
  31.     $(LINK) @<<
  32. asmdll.obj
  33. asmdll.exp
  34. -entry:$(ENTRY_DLL)
  35. $(LIBS)
  36. -out:asmdll.dll
  37. -dll
  38. <<
  39.  
  40. asmdll.obj : asmdll.asm
  41.     ml /c /coff asmdll.asm
  42.  
  43. asmdll.exp : asmdll.def asmdll.obj
  44.     $(IMPLIB) -def:asmdll.def asmdll.obj -out:asmdll.lib -machine:i386
  45.  
  46. cmain.exe : cmain.obj asmdll.lib
  47.     $(LINK) @<<
  48. cmain.obj
  49. asmdll.lib
  50. -subsystem:console
  51. $(ENTRY)
  52. $(LIBS)
  53. -out:cmain.exe
  54. <<
  55.  
  56. cmain.obj : cmain.c
  57.     $(CC) /Od /D_X86_ /c cmain.c
  58.  
  59.  
  60.     
  61.